blockquote, body, button, dd, dl, dt, fieldset,
form, h1, h2, h3, h4, h5, h6, hr, input, legend,
li, ol, p, pre, td, textarea, th, ul {
    margin: 0;
    padding: 0;
}

body{
	font-family: arial;
	font-weight: bold;
	background-image: url(../img/amam.webp);
}

/*最大盒子的样式*/
.bgall{
	position: relative;
	width: 480px;
	height: 480px;
	margin: 20px auto 0;
	background-color: #bbada0;
	border-radius: 10px;
}
/*每个小方块的统一样式*/
.cell{
	position: absolute;
	width: 100px;
	height: 100px;
	line-height: 100px;
	color: #fff;
	font-size: 60px;
	text-align: center;
	background-color: #ccc0b3;
	border-radius: 6px;
}
/*属性选择器，以什么开头
每一行之间的间距
*/
[id^="c0"]{top: 16px;}
[id^="c1"]{top: 132px;}
[id^="c2"]{top: 248px;}
[id^="c3"]{top: 364px;}
/*属性选择器，以什么结尾
每一列之间的间距*/
[id$="0"]{left: 16px;}
[id$="1"]{left: 132px;}
[id$="2"]{left: 248px;}
[id$="3"]{left: 364px;}


/*数值对应的样式*/
.n2{background-color:#eee3da}
.n4{background-color:#ede0c8}
.n8{background-color:#f2b179}
.n16{background-color:#f59563}
.n32{background-color:#f67c5f}
.n64{background-color:#f65e3b}
.n128{background-color:#edcf72}
.n256{background-color:#edcc61}
.n512{background-color:#9c0}
.n1024{background-color:#33b5e5}
.n2048{background-color:#09c}
.n4096{background-color:#a6c}
.n8192{background-color:#93c}
.n2,.n4{color:#776e65}
.n16,.n32.n64{font-size: 56px;}
.n128,.n256,.n512{font-size: 50px;}
.n1024,.n2048,.n4096,.n8192{font-size:40px}

/*得分*/
p{
	width: 480px;
	margin:0 auto;
	padding-top: 100px;
	font-size: 40px;
}

/*分数对应的颜色*/
#score,
#score1{
	color: #f00;
}

/*结束游戏*/
.gameover{
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(55,55,55,.5);
}
.gameover>p{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 370px;
	height: 285px;
	/*外边距调整宽和高的一半，保证元素在页面正中间显示*/
	margin-top: -150px;
	margin-left: -185px;
	padding-top: 15px;
	text-align: center;
	line-height: 2em;
	border-radius: 10px;
	background-color: #fff;
	border:1px solid #edcf72;
}

/*按钮样式*/
.gameover a{
	display: block;
	width: 80%;
	margin: 15px auto 0;
	background-color: #3385ff;
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
}